package com.cy.mapper;

import com.cy.entity.Courses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.entity.Users;
import io.swagger.v3.oas.annotations.parameters.RequestBody;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
public interface CoursesMapper extends BaseMapper<Courses> {

    //查询所有课程
    public List<Courses> FindAllCourses() ;

    //根据分类查询课程
    public List<Courses> FindCoursesByClass(Courses Category);

    //根据条件筛选搜索
    public List<Courses> FindByCondition(Courses courses);

    //增加课程
    int insertCourses(@RequestBody Courses courses) ;

    //修改课程
    int updateCourses(@RequestBody Courses courses);

    //删除课程
    public int delCourses(String courseID);


}
